<{extend name="public/base"}>
<{block name="foot_source"}>
<script type="text/javascript" src="/static/webuploader/webuploader.js"></script>
<link rel="stylesheet" type="text/css" href="/static/webuploader/webuploader.css">
<{/block}>
<{block name="content"}>
<!-- left column -->
<div class="col-md-12">
    <!-- general form elements -->
    <div class="box box-primary">
        <div class="box-header with-border">
            <h3 class="box-title"><{$title}></h3>
        </div>
        <!-- /.box-header -->
        <!-- form start -->
        <form role="form" action="<{:url('admin/permission/handle')}>" method="post">
            <div class="box-body">
                <div class="form-group">
                    <label for="title">权限名称</label>
                    <input type="text" class="form-control" id="title" name="title" value="<{$model.title}>" placeholder="输入权限名称">
                </div>


                <div class="form-group">
                    <label for="url">权限标志</label>
                    <input type="text" class="form-control" id="url" name="url" value="<{$model.url}>" placeholder="权限标志 比如: admin/index/index">
                </div>

                <div class="form-group">
                    <label for="url">权限分组</label>
                    <input type="text" class="form-control" id="group" name="group" value="<{$model.group}>" placeholder="权限分组 比如: 权限管理">
                </div>

                <div class="form-group">
                    <label for="type">权限类型</label>
                    <select id="type" name="type" class="form-control">
                        <?php foreach(get_permission_type() as $key => $item){ ?>
                        <option value="<{$key}>"  <{if condition="$model.type eq $key"}>selected<{/if}> ><{$item}></option>
                        <?php } ?>
                    </select>
                </div>


            </div>
            <!-- /.box-body -->

            <input type="hidden" value="<{$model.id}>" name="id" />

            <div class="box-footer">
                <button type="submit" class="btn btn-primary">提交</button>
                <a href="<{:url('admin/permission/index')}>" class="btn btn-warning ">返回列表</a>
            </div>
        </form>
    </div>
    <!-- /.box -->
</div>


<{/block}>

